home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Toolbox
/
Visual Basic Toolbox (P.I.E.)(1996).ISO
/
mdi
/
ttedit
/
pagesetu.frm
< prev
next >
Wrap
Text File
|
1994-11-28
|
9KB
|
279 lines
VERSION 2.00
Begin Form frmPageSetup
BackColor = &H00C0C0C0&
BorderStyle = 1 'Fixed Single
Caption = "Page Setup"
ClientHeight = 2295
ClientLeft = 4110
ClientTop = 3495
ClientWidth = 3630
Height = 2700
Icon = PAGESETU.FRX:0000
Left = 4050
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 153
ScaleMode = 3 'Pixel
ScaleWidth = 242
Top = 3150
Width = 3750
Begin TextBox txtLeft
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 300
Left = 720
TabIndex = 0
Text = ".75"
Top = 1260
Width = 855
End
Begin TextBox txtRight
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 300
Left = 2400
TabIndex = 1
Text = ".75"
Top = 1260
Width = 855
End
Begin TextBox txtBottom
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 300
Left = 2400
TabIndex = 3
Text = "1"
Top = 1680
Width = 855
End
Begin TextBox txtTop
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 300
Left = 720
TabIndex = 2
Text = "1"
Top = 1680
Width = 855
End
Begin TextBox txtFooter
Enabled = 0 'False
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 300
Left = 960
TabIndex = 13
Text = "Page &p"
Top = 600
Width = 1335
End
Begin TextBox txtHeader
Enabled = 0 'False
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 300
Left = 960
TabIndex = 12
Text = "&f"
Top = 180
Width = 1335
End
Begin CommandButton btnCancel
Cancel = -1 'True
Caption = "Cancel"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 400
Left = 2520
TabIndex = 5
TabStop = 0 'False
Top = 540
Width = 975
End
Begin CommandButton btnOk
Caption = "OK"
Default = -1 'True
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 400
Left = 2520
TabIndex = 4
TabStop = 0 'False
Top = 90
Width = 975
End
Begin Label lblMargins
AutoSize = -1 'True
BackColor = &H00C0C0C0&
Caption = " &Margins: "
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 195
Left = 240
TabIndex = 6
Top = 960
Width = 690
End
Begin Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "&Left:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 195
Left = 240
TabIndex = 7
Top = 1320
Width = 315
End
Begin Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "&Top:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 195
Left = 240
TabIndex = 8
Top = 1740
Width = 330
End
Begin Label Label3
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "&Right:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 195
Left = 1800
TabIndex = 9
Top = 1320
Width = 420
End
Begin Label Label4
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "&Bottom:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 195
Left = 1800
TabIndex = 14
Top = 1740
Width = 540
End
Begin Label Label6
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "&Footer"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 195
Left = 180
TabIndex = 11
Top = 660
Width = 450
End
Begin Label Label5
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "&Header"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 195
Left = 180
TabIndex = 10
Top = 240
Width = 525
End
End
Option Explicit
Sub btnCancel_Click ()
Unload Me
End Sub
'
' Center the form before it gets displayed
'
Sub Form_Load ()
Left = (MDI.Width - Width) / 2 + MDI.Left ' Center form horizontally.
Top = (MDI.Height - Height) / 2 + MDI.Top ' Center form vertically.
End Sub
'
' Give the form the 3d look
'
Sub Form_Paint ()
Dim X As Integer
For X = 0 To Controls.Count - 1
If TypeOf Controls(X) Is TextBox Then Call Indent(Controls(X))
Next
Raiseform Me
Call Frame(68, 8, 77, 225, lblMargins)
End Sub